package cn.edu.zafu.bigdata.yt;

public class Course_yt {
   
    private final int number;
    private final String name;
    private final String teacher;
    private final String place;

    public Course_yt(int number, String name, String teacher, String place) {
        this.number = number;
        this.name = name;
        this.teacher = teacher;
        this.place = place;
    }

    public String show() {
        return "Cnum" + number + "、Cname" + name + "、teacher" + teacher + "、place" + place;
    }

    public static void main(String[] args) {
        Course_yt a = new Course_yt(1, "python", "wang", "school");
        Course_yt b = new Course_yt(2, "math", "zhang", "qq");
        Course_yt c = new Course_yt(3, "English", "li", "DingTalk");

        System.out.println(a.show());
        System.out.println(b.show());
        System.out.println(c.show());
    }

}
